export const containers = [
	{
		type: 'grid',
		category: 'container',
		icon: 'el-icon-grid',
		cols: [],
		options: {
			name: '',
			hidden: false,
			gutter: 12,
			colHeight: null,  //栅格列统一高度属性，用于解决栅格列设置响应式布局浮动后被挂住的问题！！
			customClass: '',  //自定义css类名
			customStyle: '',
		}
	},

	{
		type: 'table',
		category: 'container',
		icon: 'sc-icon-table',
		rows: [],
		options: {
			name: '',
			hidden: false,
			customClass: '',  //自定义css类名
			customStyle: '',
		}
	},
	{
		type: 'tab',
		category: 'container',
		icon: 'sc-icon-tabs',
		displayType: 'border-card',
		tabs: [],
		options: {
			name: '',
			hidden: false,
			customClass: '',  //自定义css类名
			customStyle: '',
		}
	},

	{
		type: 'grid-col',
		category: 'container',
		icon: 'sc-icon-grid-col',
		internal: true,
		widgetList: [],
		options: {
			name: '',
			hidden: false,
			span: 12,
			offset: 0,
			push: 0,
			pull: 0,
			responsive: false,  //是否开启响应式布局
			md: 12,
			sm: 12,
			xs: 12,
			customClass: '',  //自定义css类名
			customStyle: '',
		}
	},

	{
		type: 'table-cell',
		category: 'container',
		icon: 'table-cell',
		internal: true,
		widgetList: [],
		merged: false,
		options: {
			name: '',
			colspan: 1,
			rowspan: 1,
			customClass: '',  //自定义css类名
			customStyle: '',
		}
	},
	{
		type: 'tab-pane',
		category: 'container',
		icon: 'tab-pane',
		internal: true,
		widgetList: [],
		options: {
			name: '',
			label: '',
			hidden: false,
			active: false,
			disabled: false,
			customClass: '',  //自定义css类名
		}
	}
]

export const basicFields = [
	{
		type: 'input',
		icon: 'sc-icon-input',
		formItemFlag: true,
		options: {
			name: '',
			label: '单行输入',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendText:false,
			suffixText:'',
			appendButtonDisabled: false,
			buttonIcon: '',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},

	{
		type: 'textarea',
		icon: 'sc-icon-textarea',
		formItemFlag: true,
		options: {
			name: '',
			type: 'text',
			label: '多行输入',
			labelAlign: '',
			rows: 3,
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: null,
			showWordLimit: false,
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'number',
		icon: 'sc-icon-number',
		formItemFlag: true,
		options: {
			name: '',
			label: '计数器',
			labelAlign: '',
			defaultValue: 0,
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			min: -100000000000,
			max: 100000000000,
			precision: 0,
			step: 1,
			controlsPosition: 'right',
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'radio',
		icon: 'sc-icon-radio',
		formItemFlag: true,
		options: {
			name: '',
			label: '单选框',
			labelAlign: '',
			defaultValue: null,
			columnWidth: '200px',
			size: '',
			displayStyle: 'inline',
			buttonStyle: false,
			border: false,
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			optionItems: [
				{label: '新选项1', value: '1'},
				{label: '新选项2', value: '2'},
				{label: '新选项3', value: '3'},
			],
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},

	{
		type: 'checkbox',
		icon: 'sc-icon-checkbox',
		formItemFlag: true,
		options: {
			name: '',
			label: '多选框',
			labelAlign: '',
			defaultValue: [],
			columnWidth: '200px',
			size: '',
			displayStyle: 'inline',
			buttonStyle: false,
			border: false,
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			optionItems: [
				{label: 'check 1', value: 1},
				{label: 'check 2', value: 2},
				{label: 'check 3', value: 3},
			],
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},
	{
		type: 'select',
		icon: 'sc-icon-select',
		formItemFlag: true,
		options: {
			name: '',
			label: '下拉选项',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			clearable: true,
			filterable: false,
			allowCreate: false,
			automaticDropdown: false,  //自动下拉
			multiple: false,
			multipleLimit: 0,
			optionItems: [
				{label: 'select 1', value: '1'},
				{label: 'select 2', value: '2'},
				{label: 'select 3', value: '3'},
			],
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'time',
		icon: 'sc-icon-time',
		formItemFlag: true,
		options: {
			name: '',
			label: '时间选择',
			labelAlign: '',
			defaultValue: null,
			placeholder: '',
			columnWidth: '200px',
			size: '',
			autoFullWidth: true,
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			editable: false,
			format: 'HH:mm:ss',  //时间格式
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'time-range',
		icon: 'sc-icon-time-range',
		formItemFlag: true,
		options: {
			name: '',
			label: '时间范围',
			type: 'timeRange',
			labelAlign: '',
			defaultValue: null,
			startPlaceholder: '',
			endPlaceholder: '',
			columnWidth: '200px',
			size: '',
			autoFullWidth: true,
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			editable: false,
			format: 'HH:mm:ss',  //时间格式
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'date',
		icon: 'el-icon-calendar',
		formItemFlag: true,
		options: {
			name: '',
			label: '日期选择',
			labelAlign: '',
			type: 'date',
			defaultValue: null,
			placeholder: '',
			columnWidth: '200px',
			size: '',
			autoFullWidth: true,
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			editable: false,
			format: 'YYYY-MM-DD',  //日期显示格式
			valueFormat: 'YYYY-MM-DD',  //日期对象格式
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'date-range',
		icon: 'sc-icon-date-range',
		formItemFlag: true,
		options: {
			name: '',
			label: '日期范围',
			labelAlign: '',
			type: 'daterange',
			defaultValue: null,
			startPlaceholder: '',
			endPlaceholder: '',
			columnWidth: '200px',
			size: '',
			autoFullWidth: true,
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			editable: false,
			format: 'YYYY-MM-DD',  //日期显示格式
			valueFormat: 'YYYY-MM-DD',  //日期对象格式
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},

	{
		type: 'switch',
		icon: 'el-icon-open',
		formItemFlag: true,
		options: {
			name: '',
			label: '开关组件',
			labelAlign: '',
			defaultValue: null,
			columnWidth: '200px',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			switchWidth: 40,
			activeValue: '0',
			inactiveValue: '1',
			activeText: '',
			inactiveText: '',
			activeColor: null,
			inactiveColor: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},

	{
		type: 'rate',
		icon: 'el-icon-star',
		formItemFlag: true,
		options: {
			name: '',
			label: '评分组件',
			labelAlign: '',
			defaultValue: null,
			columnWidth: '200px',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			max: 5,
			lowThreshold: 2,
			highThreshold: 4,
			allowHalf: false,
			showText: false,
			showScore: false,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},

	{
		type: 'color',
		icon: 'sc-icon-color',
		formItemFlag: true,
		options: {
			name: '',
			label: '颜色选择',
			labelAlign: '',
			defaultValue: null,
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},

	{
		type: 'slider',
		icon: 'sc-icon-slider',
		formItemFlag: true,
		options: {
			name: '',
			label: '滑块组件',
			labelAlign: '',
			columnWidth: '200px',
			showStops: true,
			size: '',
			defaultValue: 0,
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			min: 0,
			max: 100,
			step: 10,
			range: false,
			//vertical: false,
			height: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onValidate: '',
		},
	},

	{
		type: 'static-text',
		icon: 'sc-icon-static-text',
		formItemFlag: false,
		options: {
			name: '',
			columnWidth: '200px',
			hidden: false,
			textContent: 'static text',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},

	{
		type: 'html-text',
		icon: 'sc-icon-html-text',
		formItemFlag: false,
		options: {
			name: '',
			columnWidth: '200px',
			hidden: false,
			htmlContent: '<b>html text</b>',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},
	{
		type: 'button',
		icon: 'sc-icon-button',
		formItemFlag: false,
		options: {
			name: '',
			label: '按钮组件',
			columnWidth: '200px',
			size: '',
			displayStyle: 'block',
			disabled: false,
			hidden: false,
			type: '',
			plain: false,
			round: false,
			circle: false,
			icon: null,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			//-------------------
			onCreated: '',
			onMounted: '',
			onClick: '',
		},
	},

	{
		type: 'divider',
		icon: 'sc-icon-line',
		formItemFlag: false,
		options: {
			name: '',
			label: '分隔线',
			columnWidth: '200px',
			direction: 'horizontal',
			contentPosition: 'center',
			hidden: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	}
]

export const advancedFields = [
	{
		type: 'picture-upload',
		icon: 'el-icon-picture',
		formItemFlag: true,
		options: {
			name: '',
			label: '图片上传',
			labelAlign: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			//-------------------
			uploadTip: '',
			withCredentials: false,
			multipleSelect: false,
			limit: 3,
			fileMaxSize: 5, //MB
			fileTypes: ['jpg', 'jpeg', 'png'],
			//headers: [],
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onBeforeUpload: '',
			onUploadSuccess: '',
			onUploadError: '',
			onFileRemove: '',
			onValidate: '',
			//onFileChange: '',
		},

	},
	{
		type: 'file-upload',
		icon: 'el-icon-document',
		formItemFlag: true,
		options: {
			name: '',
			label: '附件上传',
			labelAlign: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			//-------------------
			uploadTip: '',
			withCredentials: false,
			multipleSelect: false,
			showFileList: true,
			limit: 3,
			fileMaxSize: 5, //MB
			fileTypes: ['.doc', '.docx', '.xls', '.xlsx','.jpg','.png','.jpeg'],
			//headers: [],
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onBeforeUpload: '',
			onUploadSuccess: '',
			onUploadError: '',
			onFileRemove: '',
			onValidate: '',
			//onFileChange: '',
		},
	},

	{
		type: 'rich-editor',
		icon: 'sc-icon-rich-editor',
		formItemFlag: true,
		options: {
			name: '',
			label: '富文本',
			labelAlign: '',
			placeholder: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			contentHeight: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: null,
			showWordLimit: false,
			//-------------------
			onCreated: '',
			onMounted: '',
			onValidate: '',
		},
	},

	{
		type: 'cascader',
		icon: 'sc-icon-cascader',
		formItemFlag: true,
		options: {
			name: '',
			label: '级联选择',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			size: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			showAllLevels: true,
			clearable: true,
			filterable: false,
			multiple: false,
			optionItems: [
				{label: 'select A', value: 'A', children: [{label: 'A-1', value: 'a-1'}]},
				{label: 'select B', value: 'B'},
				{label: 'select C', value: 'C'},
			],
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},
	{
		type: 'input-macro',
		icon: 'sc-icon-auto',
		formItemFlag: true,
		options: {
			name: '',
			label: '自动组件',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			resetValue:false,
			disabled: false,
			hidden: false,
			macroFormat: {
				yearFormat: [
					{label: 'yyyy年', value: 'yyyy年'},
					{label: 'yyyy', value: 'yyyy'},
					{label: 'yy年', value: 'yy年'},
					{label: 'yy', value: 'yy'}
				],
				dateFormat: [{label: 'yyyy-MM-dd', value: 'yyyy-MM-dd'},
					{label: 'yyyy年MM月dd日', value: 'yyyy年MM月dd日'},
					{label: 'yyyyMMdd', value: 'yyyyMMdd'},
					{label: 'yyyy/MM/dd', value: 'yyyy/MM/dd'},
					{label: 'yyyy.MM.dd', value: 'yyyy.MM.dd'},
					{label: 'yyyy年MM月', value: 'yyyy年MM月'},
					{label: 'MM月', value: 'MM月'},
					{label: 'dd日', value: 'dd日'},
					{label: 'MM-dd', value: 'MM-dd'},
					{label: 'MM月dd日', value: 'MM月dd日'}
				],
				timeFormat: [
					{label: 'yyyy-MM-dd HH:mm', value: 'yyyy-MM-dd HH:mm'},
					{label: 'yyyy-MM-dd HH:mm:ss', value: 'yyyy-MM-dd HH:mm:ss'},
					{label: 'yyyy年MM月dd日 HH时mm分', value: 'yyyy年MM月dd日 HH时mm分'},
					{label: 'yyyy年MM月dd日 HH时mm分ss秒', value: 'yyyy年MM月dd日 HH时mm分ss秒'},
					{label: 'HH', value: 'HH'},
					{label: 'HH时', value: 'HH时'},
					{label: 'HH:mm', value: 'HH:mm'},
					{label: 'HH时mm分', value: 'HH时mm分'},
					{label: 'HH时mm分ss秒', value: 'HH时mm分ss秒'},
					{label: 'HH:mm:ss', value: 'HH:mm:ss'},
				]
			},
			macroFormatValue: '',
			macroModelValue: '1',
			macroModel: [
				{label: '当前年份', value: '1'},
				{label: '当前日期', value: '2'},
				{label: '当前时间', value: '3'},
				{label: '流程名称', value: '4'},
				{label: '流程序号', value: '5'},
				{label: '流程GUID', value: '6'},
				{label: '流程标题', value: '7'},
				{label: '流程发起人帐号', value: '8'},
				{label: '流程发起人姓名', value: '9'},
				{label: '流程发起人部门', value: '10'},
				{label: '流程发起人行政级别', value: '11'},
				{label: '当前用户帐号', value: '12'},
				{label: '当前用户姓名', value: '13'},
				{label: '当前用户部门', value: '14'},
				{label: '当前用户长部门', value: '15'},
				{label: '当前用户行政级别', value: '16'},
				{label: '当前用户IP', value: '17'},
				{label: '当前用户姓名+日期', value: '18'},
				{label: '当前用户姓名+时间', value: '19'},
				{label: '当前用户姓名+日期+时间', value: '20'},
				{label: '当前用户账号+日期', value: '21'},
				{label: '当前用户账号+时间', value: '22'},
				{label: '当前用户账号+日期+时间', value: '23'},
				{label: '当前用户行政领导姓名', value: '24'},
				{label: '当前用户行政领导账号', value: '25'},
				{label: '当前用户手机号', value: '26'},
				{label: '当前用户邮件账号', value: '27'},
				{label: '当前用户电话或分机', value: '28'},
				{label: '当前用户工号', value: '29'},
				{label: '紧急程度', value: '32'},
				{label: '收发文来源(收发文时有效)', value: '30'},
				{label: '涉密等级(收发文时有效)', value: '31'},
			],
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',

			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendButtonDisabled: false,
			buttonIcon: '',
			appendText:false,
			suffixText:'',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
	{
		type: 'input-fetch',
		icon: 'sc-icon-fetch',
		formItemFlag: true,
		options: {
			name: '',
			label: '选择组件',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			fetchModelValue: '1',
			fetchModel: [
				{label: '部门选择器[单部门]', value: '1'},
				{label: '部门选择器[多部门]', value: '2'},
				{label: '行政级别选择器[单行政级别]', value: '3'},
				{label: '行政级别选择器[多行政级别]', value: '4'},
				{label: '人员选择器[单人员]', value: '5'},
				{label: '人员选择器[多人员]', value: '6'},
				{label: 'HR部门选择器[单部门]', value: '7'},
				{label: 'HR部门选择器[多部门]', value: '8'},
				{label: 'HR行政级别选择器[单选政级别]', value: '9'},
				{label: 'HR行政级别选择器[多选政级别]', value: '10'},
				{label: 'HR人员选择器[单人员]', value: '11'},
				{label: 'HR人员选择器[多人员]', value: '12'}
			],
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',

			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendButtonDisabled: false,
			buttonIcon: '',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		}
	},
	{
		type: 'data-table',
		icon: 'sc-icon-table',
		formItemFlag: true,
		options: {
			name: "",
			label: "数据表",
			hidden: false,
			labelWidth: null,
			labelHidden: false,
			tableHeight: 300,
			tableWidth: 100,
			rowSpacing: 8,
			customClass: [],
			customStyle: '',
			stripe: true,
			showIndex: false,
			showPagination: true,
			smallPagination: false,
			showSummary: false,
			border: true,
			tableSize: "default",
			tableColumns: [],
			dbInterFace:'',
			dbInterFaceList:[],
			apiObj:'',
			showButtonsColumn: false,
			buttonsColumnFixed: "right",
			buttonsColumnTitle: "操作",
			buttonsColumnWidth: 170,
			operationButtons: [
				{
					name: "detail",
					label: "详情",
					size: "small",
					hidden: true,
					disabled: false
				},
				{
					name: "edit",
					label: "编辑",
					size: "small",
					hidden: true,
					disabled: false
				},
				{
					name: "delete",
					label: "删除",
					size: "small",
					hidden: true,
					disabled: false
				}
			],
			pagination: {
				currentPage: 1,
				pageSizes: [10, 15, 20, 30, 50, 100, 200],
				pageSize: 20,
				total: 0
			},
			dsEnabled: false,
			dsName: "",
			tableData: [],
			onCreated:"",
			onMounted:"",
			onPageSizeChange: "",
			onCurrentPageChange: "",
			onSelectionChange: "",
			onHideOperationButton: "",
			onDisableOperationButton: "",
			onGetOperationButtonLabel: "",
			onOperationButtonClick: "",
			onHeaderClick: "",
			onRowClick: "",
			onRowDoubleClick: "",
			onCellClick: "",
			onCellDoubleClick: "",
			onGetRowClassName: "",
			onGetSpanMethod: ""
		}
	},
	{
		type: 'children-data-table',
		icon: 'sc-icon-table-edit',
		formItemFlag: true,
		options: {
			disabled:false,
			name: "",
			label: "表单表格",
			hidden: false,
			labelWidth: null,
			labelHidden: false,
			tableHeight: 300,
			tableWidth: 100,
			rowSpacing: 8,
			customClass: [],
			customStyle: '',
			disabledField:[],
			hideField:[],
			hideAddButton:false,
			hideDelButton:false,
			stripe: true,
			showPagination: true,
			smallPagination: false,
			showSummary: false,
			border: true,
			tableSize: "default",
			childrenTableColumns: [],
			tableData: [],
			showButtonsColumn: false,
			buttonsColumnFixed: "right",
			buttonsColumnTitle: "操作",
			buttonsColumnWidth: 170,
			operationButtons: [
				{
					name: "detail",
					label: "详情",
					size: "small",
					hidden: true,
					disabled: false
				},
				{
					name: "edit",
					label: "编辑",
					size: "small",
					hidden: true,
					disabled: false
				},
				{
					name: "delete",
					label: "删除",
					size: "small",
					hidden: true,
					disabled: false
				}
			],
			onCreated:"",
			onMounted:"",
			onPageSizeChange: "",
			onCurrentPageChange: "",
			onSelectionChange: "",
			onHideOperationButton: "",
			onDisableOperationButton: "",
			onGetOperationButtonLabel: "",
			onOperationButtonClick: "",
			onHeaderClick: "",
			onRowClick: "",
			onRowDoubleClick: "",
			onCellClick: "",
			onCellDoubleClick: "",
			onGetRowClassName: "",
			onGetSpanMethod: ""
		},
	},
	{
		type: 'input-calculation',
		icon: 'sc-icon-calculation',
		formItemFlag: true,
		options: {
			name: '',
			label: '计算组件',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			formula:'',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendButtonDisabled: false,
			buttonIcon: '',
			appendText:false,
			suffixText:'',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
	{
		type: 'flow-relation',
		icon: 'sc-icon-flow-relation',
		formItemFlag: true,
		options: {
			name: '',
			label: '流程关联',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			multiple:true,
			fetchModelValue: '1',
			fetchModel: [
				{label: '我参与的', value: '1'},
				{label: '我创建的', value: '2'},
				{label: '同类型流程', value: '3'},
				{label: '查询范围内的', value: '4'},
			],
			clearable: true,
			required: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
	{
		type: 'iframe',
		icon: 'sc-icon-frame',
		formItemFlag: false,
		options: {
			name: '',
			label: '网页嵌套',
			columnWidth: '200px',
			contentHeight: '200px',
			hidden: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			webSite: 'http://www.cyoasoft.com',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},
	{
		type: 'bar',
		icon: 'sc-icon-bar-code',
		formItemFlag: true,
		options: {
			name: '',
			label: '条形码',
			labelHidden: false,
			columnWidth: '2',
			contentHeight: '50',
			hidden: false,
			barFormat:'CODE39',
			bindField:'',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			defaultValue: '0123456789',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},
	{
		type: 'myqrcode',
		icon: 'sc-icon-q-r-code',
		formItemFlag: true,
		options: {
			name: '',
			label: '二维码',
			labelHidden: false,
			widgetSize: 100,
			bindField:'',
			hidden: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			defaultValue: 'http://www.cyoasoft.com',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},
	{
		type: 'sign',
		icon: 'el-icon-edit-pen',
		formItemFlag: true,
		options: {
			name: '',
			label: '签名组件',
			labelAlign: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '100%',
			columnHeight: '100px',
			signType:['1','2'],
			bindField:'',
			disabled: false,
			hidden: false,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onBeforeUpload: '',
			onUploadSuccess: '',
			onUploadError: '',
			onFileRemove: '',
			onValidate: '',
			//onFileChange: '',
		},
	},
	{
		type: 'constant-tag',
		icon: 'sc-icon-constant',
		formItemFlag: true,
		options: {
			name: '',
			columnWidth: '200px',
			hidden: false,
			constantModel:'1',
			constantOptions: [
				{label: '#MACRO_表单名称', value: '1'},
				{label: '#MACRO_流程名称', value: '2'},
				{label: '#MACRO_流程标题', value: '3'},
				{label: '#MACRO_流程开始时间', value: '4'},
				{label: '#MACRO_流程结束时间', value: '5'},
				{label: '#MACRO_流程序号', value: '6'},
				{label: '#MACRO_流水标识码', value: '7'},
				{label: '#MACRO_流程发起人姓名', value: '8'},
				{label: '#MACRO_流程发起人ID', value: '9'},
				{label: '#MACRO_流程参与人', value: '10'},
				{label: '#MACRO_设计步骤会签意见', value: '100'}
			],
			stepId: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			//-------------------
			onCreated: '',
			onMounted: '',
		},
	},
	{
		type: 'input-doc-number',
		icon: 'sc-icon-table-field',
		formItemFlag: true,
		options: {
			name: '',
			label: '公文文号',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			docRuleValue: '',
			docRuleModel:[],
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendButtonDisabled: false,
			buttonIcon: '',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
	{
		type: 'data-dic',
		icon: 'sc-icon-select-dic',
		formItemFlag: true,
		options: {
			name: '',
			label: '数据字典',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			clearable: true,
			filterable: false,
			allowCreate: false,
			automaticDropdown: false,  //自动下拉
			multiple: false,
			multipleLimit: 0,
			dicTable:"",
			keyField:"",
			valueField:"",
			whereStr:"",
			optionItems:[],
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onRemoteQuery: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},
	{
		type: 'select-filter',
		icon: 'sc-icon-select-dic',
		formItemFlag: true,
		options: {
			name: '',
			label: '动态筛选',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			disabled: false,
			hidden: false,
			clearable: true,
			filterable: false,
			allowCreate: false,
			remote: false,
			automaticDropdown: false,  //自动下拉
			multiple: false,
			multipleLimit: 0,
			dbInterFace:'',
			dbInterFaceList:[],
			required: false,
			requiredHint: '',
			validation: '',
			validationHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},
	{
		type: 'data-cascader',
		icon: 'sc-icon-dynamics-cascader',
		formItemFlag: true,
		options: {
			name: '',
			label: '动态级联',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			size: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			showAllLevels: true,
			clearable: true,
			filterable: false,
			dicTable:"",
			keyField:"",
			valueField:"",
			levelField:"",
			whereStr:"",
			multiple: false,
			optionItems: [],
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
		},
	},
	{
		type: 'code-no',
		icon: 'sc-icon-auto-number',
		formItemFlag: true,
		options: {
			name: '',
			label: '自动编号',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			placeholder: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			clearable: true,
			showPassword: false,
			required: false,
			requiredHint: '',
			codeRuleValue: '',
			codeRuleModel:[],
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: 50,
			showWordLimit: false,
			prefixIcon: '',
			suffixIcon: '',
			appendButton: false,
			appendButtonDisabled: false,
			buttonIcon: '',
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
	{
		type: 'data-fill',
		icon: 'sc-icon-download',
		formItemFlag: true,
		options: {
			name: '',
			label: '数据回填',
			labelAlign: '',
			type: 'text',
			defaultValue: '',
			columnWidth: '200px',
			size: '',
			labelWidth: null,
			labelHidden: false,
			readonly: false,
			disabled: false,
			hidden: false,
			dbInterFace:'',
			dbInterFaceList:[],
			apiObj:'',
			dataMap: '表列1:field1:d_xxx1,列表2:field2:d_xxx2',
			clearable: true,
			//-------------------
			customClass: '',  //自定义css类名
			customStyle: '',
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			//-------------------
			onCreated: '',
			onMounted: '',
			onInput: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: '',
			onAppendButtonClick: '',
		},
	},
]

export const customFields = []

export function addContainerWidgetSchema(containerSchema) {
	containers.push(containerSchema)
}

export function addBasicFieldSchema(fieldSchema) {
	basicFields.push(fieldSchema)
}

export function addAdvancedFieldSchema(fieldSchema) {
	advancedFields.push(fieldSchema)
}

export function addCustomWidgetSchema(widgetSchema) {
	customFields.push(widgetSchema)
}
